package com.yf.dxapp.module.app.controller.admin.courseitem.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 课程明细 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CourseItemRespVO {

    @Schema(description = "课节id", requiredMode = Schema.RequiredMode.REQUIRED, example = "356")
    @ExcelProperty("课节id")
    private Long id;

    @Schema(description = "主课程id", requiredMode = Schema.RequiredMode.REQUIRED, example = "3155")
    @ExcelProperty("主课程id")
    private Long mainCourseId;

    @Schema(description = "课节名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("课节名称")
    private String title;

    @Schema(description = "课节描述", example = "你说的对")
    @ExcelProperty("课节描述")
    private String description;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "课节编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("课节编号")
    private Long courseNo;

    @Schema(description = "课节编号描述", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("课节编号描述")
    private String courseNoStr;

    @Schema(description = "IMG-课节封面", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("IMG-课节封面")
    private String cover;

    @Schema(description = "FILE-课节视频地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @ExcelProperty("FILE-课节视频地址")
    private String url;

    @Schema(description = "时长", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("时长")
    private Integer time;

}